Website
http://www.hzhcontrols.com/
NetWinformCustom Controls
My english is poor. The English below is from Google Translate. Please forgive me.
中文README.md(码云)
Introduction
c#winform custom control, has better operation support for touch screen, the project is based on framework4.0, completely native control development, do not use any third-party controls, you can use it safely in your project .
Blog address: https://www.cnblogs.com/bfyx
Code Cloud: https://gitee.com/kwwwvagaa/net_winform_custom_control.git
Welcome to exchange discussion: Click to join QQ group 568015492
If my code is useful to you, please reward me, thank you, your reward is my motivation.
![zfb1.jpg 输入图片说明](https://images.gitee.com/uploads/images/2019/0905/180345_49207d1d_301547.jpeg)
The source code is only for exchange learning. The open source agreement is Apache License 2.0. For commercial use, please contact the group owner.
Come here, come to a Star and let's go.
NuGet
Install-Package HZH_Controls
The content listed below is only part of the control, more control effects, please download the source code to see the demo running effect!
![3.gif 输入图片说明](https://images.gitee.com/uploads/images/2019/0903/084848_9aaca7d2_301547.gif)
Sample
1, prompt window renderings
![tip box 2.png sample image](https://images.gitee.com/uploads/images/2019/0808/142050_1f5588a0_301547.png)
If (FrmDialog.ShowDialog(this, "Do you want to display a prompt box without a cancel button?", "Mode Form Test", true) == System.Windows.Forms.DialogResult.OK)
{
FrmDialog.ShowDialog(this, "This is a prompt box without a cancel button", "Mode Form Test");
}
2, multiple input form
![Multiple input form.png sample image](https://images.gitee.com/uploads/images/2019/0808/142218_4c506097_301547.png)
FrmInputs frm = new FrmInputs("Dynamic Multi-Input Form Test",
New string[] { "name", "telephone", "ID number", "address" },
New Dictionary() { { "Phone", HZH_Controls.TextInputType.Regex }, { "ID number", HZH_Controls.TextInputType.Regex } },
New Dictionary() { { "phone", "^1\\d{10}$" }, { "ID number", "^\\d{18}$" } },
New Dictionary() { { "phone", KeyBoardType.UCKeyBorderNum }, { "ID number", KeyBoardType.UCKeyBorderNum } },
New List() { "name", "telephone", "identity number" });
frm.ShowDialog(this);
///
/// Function Description: Constructor
/// Author: HZH
/// Creation date: 2019-08-05 10:57:26
/// Task number: POS
///
/// form title
/// Input name
/// Input type corresponds to input type, key: input item name, if no default control input is not set
/// The input item corresponds to the regular rule, valid when imTypes=Regex, key: input item name, if you do not set the default no control input
/// text box keyboard, key: input item name, if you do not set the default English keyboard
/// Required entry name
/// Input default value, key: input name
Public FrmInputs(
String strTitle,
String[] inPutLabels,
Dictionary inTypes = null,
Dictionary regexs = null,
Dictionary keyBoards = null,
List mastInputs = null,
Dictionary defaultValues = null)
3, Temp1 form
![temp.png sample image](https://images.gitee.com/uploads/images/2019/0808/143753_15610b9f_301547.png)
/ / New form FrmTemp1Test inherits HZH_Controls.Forms.FrmTemp1
FrmTemp1Test frm = new FrmTemp1Test();
frm.ShowDialog(this);
4, there is a form to confirm cancellation 1
![oc1.png sample image](https://images.gitee.com/uploads/images/2019/0808/144723_55252cf2_301547.png)
/ / New form FrmOKCancel1Test inherits HZH_Controls.Forms.FrmWithOKCancel1
FrmOKCancel1Test frm = new FrmOKCancel1Test();
frm.ShowDialog(this);
5, there is a form to confirm cancellation 2
![oc2.png sample image](https://images.gitee.com/uploads/images/2019/0808/145516_07d73ec0_301547.png)
/ / New form FrmOKCancel2Test inherits HZH_Controls.Forms.FrmWithOKCancel2
FrmOKCancel2Test frm = new FrmOKCancel2Test();
frm.ShowDialog(this);
6, single title form
![t.png sample image](https://images.gitee.com/uploads/images/2019/0808/145718_ff035712_301547.png)
/ / New form FrmWithTitleTest inherits HZH_Controls.Forms.FrmWithTitle
FrmWithTitleTest frm = new FrmWithTitleTest();
frm.ShowDialog(this);
7, control
![1.png 输入图片说明](https://images.gitee.com/uploads/images/2019/0827/113624_6e3e98ca_301547.png)
Text box keyboard effect
![k3.png sample image](https://images.gitee.com/uploads/images/2019/0808/153829_37e4dff5_301547.png)
`Handwriting input requires the handwriting support of Sogou, please copy the HandInput folder to the running directory.
Time control effect
![time3.png sample image](https://images.gitee.com/uploads/images/2019/0808/160418_c92391ba_301547.png)
Drop-down list data binding *
/ / Use the method is similar to the native ComboBox
List lstCom = new List();
For (int i = 0; i |